package com.asset.salesforce.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Table(name="invoice_sku")
@Entity
@PrimaryKeyJoinColumn(name="invoice_item_parent_id")
public class InvoiceSku extends InvoiceItemParent {
	
	private String discount;
	private String quantity;
	private String price;
	private String totalPrice;
	private StockSku stockSku;

	/**
	 * @return the id
	/**
	 * @return the discount
	 */
	@Column(name="discount")
	public String getDiscount() {
		return discount;
	}
	/**
	 * @param discount the discount to set
	 */
	public void setDiscount(String discount) {
		this.discount = discount;
	}
	/**
	 * @return the quantity
	 */
	@Column(name="quantity")
	public String getQuantity() {
		return quantity;
	}
	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	/**
	 * @return the price
	 */
	@Column(name="price")
	public String getPrice() {
		return price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(String price) {
		this.price = price;
	}
	/**
	 * @return the total_price
	 */
	@Column(name="total_price")
	public String getTotalPrice() {
		return totalPrice;
	}
	/**
	 * @param total_price the total_price to set
	 */
	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}
	/**
	 * 
	 * @return
	 */
	@ManyToOne
	@JoinColumn(name="stock_sku_id")
	public StockSku getStockSku() {
		return stockSku;
	}
	/**
	 * 
	 * @param stockSku
	 */
	public void setStockSku(StockSku stockSku) {
		this.stockSku = stockSku;
	}
	
}
